#导包
from rest_framework import serializers
#导入数据库类
from .models import *

class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = "__all__"
        
        
        
class CompanysSerializer(serializers.ModelSerializer):
    class Meta:
        model = Companys
        fields = "__all__"
        
        
        
class PowerSerializer(serializers.ModelSerializer):
    class Meta:
        model = Power
        fields = "__all__"
        
        
        
class UserAddressSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserAddress
        fields = "__all__"
        
        
        
class CatesSerializer(serializers.ModelSerializer):
    class Meta:
        model = Cates
        fields = "__all__"

        
class GoodsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = "__all__"
        
class LabelsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Labels
        fields = "__all__"

        
class GoodsTypesSerializer(serializers.ModelSerializer):
    class Meta:
        model = GoodsTypes
        fields = "__all__"



        
class EquipmentsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Equipments
        fields = "__all__"

        
class AlertEventsSerializer(serializers.ModelSerializer):
    class Meta:
        model = AlertEvents
        fields = "__all__"


        
class OrdersSerializer(serializers.ModelSerializer):
    class Meta:
        model = Orders
        fields = "__all__"



        
class TemperaturesSerializer(serializers.ModelSerializer):
    class Meta:
        model = Temperatures
        fields = "__all__"


        
class LocationsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Locations
        fields = "__all__"


        
class ApplyInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = ApplyInfo
        fields = "__all__"

        
class CustomersSerializer(serializers.ModelSerializer):
    class Meta:
        model = Customers
        fields = "__all__"